/**
 * 
 */
package org.picWeb.util;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.picWeb.util.preferences.SystemGlobal;
import org.springframework.web.servlet.view.freemarker.FreeMarkerView;

/**
 * @author zjm
 * org.picWeb.util/MyFreeMarkerView.java  2011-6-21
 */
public class MyFreeMarkerView extends FreeMarkerView {

	@SuppressWarnings("unchecked")
	@Override
	protected void doRender(Map model, HttpServletRequest request, HttpServletResponse response) throws Exception {
		model.put("req", request);
		model.put("title", SystemGlobal.getValue("sys.title"));
		super.doRender(model, request, response);
	}
	
	

}
